
	$(".box").click(function(event) {
		var target = event.target;
		if(target.className == "dingyue"){
			if($(target).html() == "订阅"){
				$(target).html("已订阅");
			}else{
				$(target).html("订阅");
			}
		}

		// console.log($(target not(".dingyue")).parents(".box"))
		if ($(target).parents(".box") && target.className != "dingyue") {
			var count = $(target).parents(".box").index();
			// console.log(count)
			window.location.href='../html/details/details' + count + '.html';
		}


	});


